package com.itheima.service.impl;

import com.itheima.service.UserService;
import com.itheima.dao.UserDao;

public class UserServiceImpl implements UserService {
    private UserDao userDao;
    private String name;
    private int age;

    public UserServiceImpl(UserDao userDao, String name) {
        this.userDao = userDao;
        this.name = name;
    }
//    public void setUserDao(UserDao userDao) {
//        this.userDao = userDao;
//    }
//
//    public void setName(String name) {
//        this.name = name;
//    }

    public void setAge(int age) {
        this.age = age;
    }


    @Override
    public void save() {
        System.out.println("我去年买了个表");
    }
}
